﻿using System;

namespace Shuba.Model
{
    [Serializable]
    public class AuditTrailInfo
    {
        public AuditTrailInfo()
        {
        }

        public AuditTrailInfo
        (
            string ACT_TYPE
            ,string TABLE_NAME
            ,string PRIMARY_KEY
            ,string FIELD_NAME
            ,string OLD_VALUE
            ,string NEW_VALUE
            ,string UPDATE_BY
            ,DateTime UPDATE_DATE
            ,string DB_USER_NAME
        )
        {
            this.ACT_TYPE = ACT_TYPE;
            this.TABLE_NAME = TABLE_NAME;
            this.PRIMARY_KEY = PRIMARY_KEY;
            this.FIELD_NAME = FIELD_NAME;
            this.OLD_VALUE = OLD_VALUE;
            this.NEW_VALUE = NEW_VALUE;
            this.UPDATE_BY = UPDATE_BY;
            this.UPDATE_DATE = UPDATE_DATE;
            this.DB_USER_NAME = DB_USER_NAME;
         }

        public AuditTrailInfo(string TABLE_NAME)
        {
            this.TABLE_NAME = TABLE_NAME;
        }

        public string ACT_TYPE { get; set; }
        public string TABLE_NAME { get; set; }
        public string PRIMARY_KEY { get; set; }
        public string FIELD_NAME { get; set; }
        public string OLD_VALUE { get; set; }
        public string NEW_VALUE { get; set; }
        public string UPDATE_BY { get; set; }
        public DateTime UPDATE_DATE { get; set; }
        public string DB_USER_NAME { get; set; }
    }
}
